<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Create Table JSP</title>
</head>
<body bgcolor="#E6E6FA">
	<center>
		<h1>UIC Data Mining Tool</h1>
		<br /> <br /> <br /> <a href="index.jsp">Home</a>
		&nbsp;&nbsp;&nbsp; <a href="dbAccess.jsp">Database Access</a>
		&nbsp;&nbsp;&nbsp; <a href="dataMiningTool.jsp">Data Mining Tool</a>
		&nbsp;&nbsp;&nbsp; <a href="LogOut.jsp">Logout</a> <br />
		<hr>
		<br />
	</center>
	
	<script type="text/javascript">
		function createTableFunction() {
			window.location.href = 'createTable.jsp';
		}
		function dropTableFunction() {
			window.location.href = 'dropTable.jsp';
		}
		function displayTableFunction() {
			window.location.href = 'displayTable.jsp';
		}
		function importTableFunction() {
			window.location.href = 'importTable.jsp';
		}
		function exportTableFunction() {
			window.location.href = 'exportTable.jsp';
		}
	</script>

<form action="DatabaseAccessServlet" method="post">
		<div>
			<div style="width: 10%; float: left;">
				<div>
					<center>
						<b>DB Functions</b>
					</center>
				</div>
				<div style="background-color: #95111d;">
					<center>
						<table style="width: 50%" align="center">
							<tr>
								<td><br></td>
							</tr>
							<tr>
								<td><input type="button" onClick=""	value="CREATE TABLE"></td>
							</tr>
							<tr>
								<td><br></td>
							</tr>
							<tr>
								<td><input type="button" onClick="dropTableFunction()"
									value="DROP TABLE"></td>
							</tr>
							<tr>
								<td><br></td>
							</tr>
							<tr>
								<td><input type="button" onClick="displayTableFunction()"
									value="DISPLAY TABLE"></td>
							</tr>
							<tr>
								<td><br></td>
							</tr>
							<tr>
								<td><input type="button" onClick="importTableFunction()"
									value="IMPORT TABLE "></td>
							</tr>
							<tr>
								<td><br></td>
							</tr>
							<tr>
								<td><input type="button" onClick="exportTableFunction()"
									value="EXPORT TABLE "></td>
							</tr>

						</table>
					</center>
				</div>
			</div>

<!-- DIV 2 code -->			
			<div style="width: 90%; float: left">
				<div>
					<center>
						<b>DB Parameters</b>
					</center>

				</div>
				<div style="background-color: #9e9e9e;">

					<table>
						<tr>
							<td>Table Name:&nbsp;<input type="text" name="tableName"></td>


						</tr>
						<tr>
							<td>Column1:&nbsp;<input type="text" name="column1">&nbsp;&nbsp;&nbsp;&nbsp;
							</td>
							<td>Data Type:&nbsp;<input type="text" name="dataType1"></td>
						</tr>
						<tr>

						</tr>
						<tr>
							<td>Column2:&nbsp;<input type="text" name="column2">&nbsp;&nbsp;&nbsp;&nbsp;
							</td>
							<td>Data Type:&nbsp;<input type="text" name="dataType2"></td>
						</tr>
						<tr>

						</tr>
						<tr>
							<td>Column3:&nbsp;<input type="text" name="column3">&nbsp;&nbsp;&nbsp;&nbsp;
							</td>
							<td>Data Type:&nbsp;<input type="text" name="dataType3"></td>
						</tr>
						<tr>

						</tr>
					</table>

					<br> <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input
						type="SUBMIT" value="SUBMIT TABLE">
						
						<br> <br><br> <br>
				</div>
			</div>
		</div>



	</form>
</body>

</html>

